package com.aidex.biz.service;

import com.aidex.biz.domain.Order;
import com.aidex.common.core.domain.entity.Company;
import com.lop.open.api.sdk.LopException;
import com.lop.open.api.sdk.response.ECAP.EcapV1OrdersCancelLopResponse;
import com.lop.open.api.sdk.response.ECAP.EcapV1OrdersCreateLopResponse;

import java.text.ParseException;

/**
 * 京东快运服务
 */
public interface JdKuaiyunService {
    /**
     * 京东物流发送
     * @param order
     * @return
     */
    public EcapV1OrdersCreateLopResponse sendJdKuaiYuanOrder(Order order) throws LopException, ParseException;

    /**
     * 京东物流取消
     * @param order
     * @return
     */
    public EcapV1OrdersCancelLopResponse cancelJdKuaiYuanOrder(Order order) throws LopException;

    /**
     * 驿站呼叫京东物流
     * @param company
     * @return
     * @throws LopException
     * @throws ParseException
     */
    public EcapV1OrdersCreateLopResponse companySendJdKuaiYuan(Company company,String orderId) throws LopException,
            ParseException;

}
